# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer:
pkgname=xmag
pkgver=1.0.7
pkgrel=1
pkgdesc="Utility to display a magnified snapshot of a portion of an X11 screen"
url="https://gitlab.freedesktop.org/xorg/app/xmag"
arch="all"
license="custom"
options="!check" # no test suite
makedepends="
	libx11-dev
	libxaw-dev
	libxmu-dev
	libxt-dev
	util-macros
	"
source="https://xorg.freedesktop.org/archive/individual/app/xmag-$pkgver.tar.gz"
subpackages="$pkgname-doc"

build() {
	./configure \
		--target="$CTARGET" \
		--build="$CBUILD" \
		--host="$CHOST" \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING -t "$pkgdir"/usr/share/licenses/"$pkgname"
}

sha512sums="
aa0a2e00e618e80f0d7c8a9e49bdb92d8f27caab242ccb5a848c4b0f30cb00b5ea905157452ca99b7941b090d19f96e3e8e228da2285dbb7fa51159735d30f45  xmag-1.0.7.tar.gz
"
